#ifndef HTMLEDITOR_H
#define HTMLEDITOR_H

#include <BXmlNode>
#include <BScrollWidget>

#include "HtmlBox.h"

using namespace BWE;

class HtmlEditor : public BScrollWidget
{
public:
	HtmlEditor(BWidget* parent = 0);
	~HtmlEditor();

	void open(const BString& fileName);
	void save();

protected:
	HtmlBox* readNode(BXmlNode* node);

private:
	BString			_fileName;
	BString			_htmlText;
};

#endif